package com.goods.business.mapper;

import com.goods.common.model.business.Product;
import com.goods.common.vo.business.ProductVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface ProductMapper extends Mapper<Product> {

    List<Product> findProductList(@Param("name") String name,
                                  @Param("categoryId")Integer categoryId,
                                  @Param("status") Integer status);

    /**
     * 根据 inNum 查询 product集合
     * @param inNum
     * @return
     */
    List<ProductVO> findByInnum(@Param("inNum")String inNum);
}
